<template>
  <el-form :model="form" label-width="120px">
    <el-form-item label="姓名">
      <el-input v-model="userData.name" />
    </el-form-item>

    <el-form-item label="性别">
      <el-input v-model="userData.gender" />
    </el-form-item>
    <el-form-item label="电话">
      <el-input v-model="userData.phone" />
    </el-form-item>
    <el-form-item label="邮箱">
      <el-input v-model="userData.email" />
    </el-form-item>



    <el-form-item>
      <el-button type="primary" @click="onSubmit">Create</el-button>
      <el-button>Cancel</el-button>
    </el-form-item>
  </el-form>
</template>
<script>
export default {
  name: "UserUpdate",
  data() {
    return {
      userData: {
        name: '',
        gender: '',
        phone: '',
        email: ''
      },
    };
  },
}
</script>

<style scoped>

</style>